package com.xinxing.learning.security.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class BankController {

    @GetMapping("/")
    public String index() {
        return "index test";
    }

    @PostMapping("/withdraw")
    public String transfer() {
        log.info("transfer() called with parameters => {}", "bank transfer test log");
        return "发起了一次转账";
    }
}
